# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-screenshot
pkgver=3.36.0
pkgrel=0
pkgdesc="Screenshot capture utility for GNOME"
url="https://gitlab.gnome.org/GNOME/gnome-screenshot"
arch="all"
license="GPL-2.0-or-later"
depends="desktop-file-utils"
makedepends="meson libcanberra-dev glib-dev itstool appstream-glib-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-screenshot/${pkgver%.*}/gnome-screenshot-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="fda599e7c50b37d8356352085b2f45f3b8c868af897352810998e127bd7333d5a1383369ec1cb980064f7e0aafa0e01bc5cdb31563ea56b1a7e4099fc18cc6b4  gnome-screenshot-3.36.0.tar.xz"
